package com.examiner.service;

import com.examiner.bean.test.NewTest;
import com.examiner.bean.test.NewTestUND;
import com.examiner.bean.vo.EditNewTestVo;
import com.examiner.bean.vo.NewTestVo;
import com.examiner.page.QueryInfo;

import javax.management.Query;
import java.util.List;

public interface NewTestService {
    void addNewTest(NewTestVo newTestVo);

    List<NewTest> getNewTestList(String userName, QueryInfo query) throws Exception;

    int getNewTestListTotal(String userName, QueryInfo query) throws Exception;

    NewTest getNewTestById(Integer id);

    NewTestUND getNewTestVoById(Integer id);

    void changeNewTestInfo(EditNewTestVo editInfo) throws Exception;

    void deleteNewTestById(Integer id) throws Exception;
}
